<template>
  <div>
    <header class="wrap">
      <i class="iconfont iconfont-31fanhui1" @click="goBack"></i>
      <slot name="search"></slot>
      <span><slot></slot></span>
      <i class="iconfont icon-More"></i>
    </header>
  </div>
</template>

<script>
export default {
  methods: {
    goBack() {
      this.$router.go(-1);
    },
  },
};
</script>

<style lang="scss" scoped>
@import "../../common/style/mixin";
header {
  position: fixed;
  top: 0;
  display: flex;
justify-content: space-between;

  z-index: 999;
  width: 100%;
  height: 88px;
  text-align: center;
  line-height: 88px;
  padding: 0 20px;
  font-size: 34px;
  background-color: #fff;
  @include boxSizing;
  .iconfont {
    // position: absolute;
    // left: 20px;
    // top: 0;
    font-size: 50px;
    font-weight: bold;
  }
  .icon-More {
      font-size: 40px;
    }
}
</style>